package cn.pet_know.common.feigns;


import cn.pet_know.common.entity.dto.UserDTO;
import cn.pet_know.common.entity.vo.UserVO;
import cn.pet_know.common.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("PetUser")
public interface UserFeign {

    @PostMapping("/findUser")
    R<UserVO> findUser(@RequestBody UserDTO userDTO);

    @PostMapping("/findUserList")
    R<List<UserVO>> findUserList(@RequestBody List<Long> userIds);

}
